panel-raspberrypi-touchscreen: Fix NULL deref if probe order goes wrong.
authorEric Anholt <eric@anholt.net>
Thu, 13 Apr 2017 00:52:56 +0000 (17:52 -0700)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:37:04 +0000 (17:37 +0000)
commit6b9735bfbdc974284a830a53b5fb8c3ecd56ae17
treebc9edb3e2b8c9548851552b30985f0b7cb934bf1
parente7e6b9086ec40cbd9a2211619d673f956e9a76c7
panel-raspberrypi-touchscreen: Fix NULL deref if probe order goes wrong.

If the i2c driver hadn't pobed before the panel driver probes, then
the client would be NULL but we were looking for an ERR_PTR in the
error case.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c